package com.ruoyi.baseMain.service;

import com.ruoyi.baseMain.domain.BasePolicyType;
import com.ruoyi.baseMain.domain.vo.BasePolicyTypeVo;
import com.ruoyi.baseMain.domain.bo.BasePolicyTypeBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 竞价类别对应Service接口
 *
 * @author linziheng
 * @date 2024-07-25
 */
public interface IBasePolicyTypeService {

    /**
     * 查询竞价类别对应
     */
    BasePolicyTypeVo queryById(Long id);

    /**
     * 查询竞价类别对应列表
     */
    TableDataInfo<BasePolicyTypeVo> queryPageList(BasePolicyTypeBo bo, PageQuery pageQuery);

    /**
     * 查询竞价类别对应列表
     */
    List<BasePolicyTypeVo> queryList(BasePolicyTypeBo bo);

    /**
     * 新增竞价类别对应
     */
    Boolean insertByBo(BasePolicyTypeBo bo);

    /**
     * 修改竞价类别对应
     */
    Boolean updateByBo(BasePolicyTypeBo bo);

    /**
     * 校验并批量删除竞价类别对应信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
